using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace WebUpdaterAdminCore.Models
{
    /// <summary>
    /// 客户端状态
    /// </summary>
    public class ClientState
    {

        /// <summary>
        /// 客户端ID
        /// </summary>
        [Key]
        public string Id { get; set; }

        /// <summary>
        /// 会话ID
        /// </summary>
        public string SessionId { get; set; }

        /// <summary>
        /// 客户端IP
        /// </summary>
        public string ClientIP { get; set; }

        /// <summary>
        /// 是否在线
        /// </summary>
        public bool Connected { get; set; }

        /// <summary>
        /// 客户端启动时间
        /// </summary>
        public DateTime StartTime { get; set; }

        /// <summary>
        /// 最近连接时间
        /// </summary>
        public DateTime LastActiveTime { get; set; }
        
    }
}
